<%-- 
    Document   : action
    Created on : Dec 15, 2011, 12:07:37 AM
    Author     : Nadia
--%>

<%@page import="java.util.Iterator"%>
<%@page import="java.net.URLDecoder"%>
<%@page contentType="xml" pageEncoding="UTF-8"%>
        <%

                    String string = request.getParameter("mydropdown");
                    try {
                        server.DocumentWebServiceService service = new server.DocumentWebServiceService();
                        server.DocumentWebService port = service.getDocumentWebServicePort();
                        // TODO initialize WS operation arguments here
                        java.lang.String areaOfStudy = string;
                        // TODO process result here
                        java.util.List<java.lang.Object> result = port.documentService(areaOfStudy);
                        for (int i = 0; i < result.size(); i++) {
                         //   Object finalResult = URLDecoder.decode((String) result.get(i), "UTF-8");
                            out.println(URLDecoder.decode((String) result.get(i), "UTF-8"));
                            System.out.println(URLDecoder.decode((String) result.get(i), "UTF-8"));
                        }

                    } catch (Exception ex) {
                        // TODO handle custom exceptions here
                    }
        %>
    